# 牛马继承了牛(ox)和马(horse)
# 定义父类牛和马
class Ox:
    def __init__(self, sex, breed):
        self.sex = sex
        self.breed = breed

    def skill1(self):
        return f'{self.sex}{self.breed}会跟风'


class Horse:
    def __init__(self, colour):
        self.colour = colour  # 这里的属性继承不到

    def skill2(self):
        return f'我是{self.colour}'


# 定义子类  继承
class OxHorse(Ox, Horse):
    def skill3(self):
        return '风马牛不相及'


# 创建对象
WangLin = OxHorse('人妖', '旺财')

print(WangLin.skill1())
print(WangLin.skill3())
